|
|
|
|
|
|
|
Marking Groups of Controls |
|
|
|
|
|
|
|
|
To mark a group of controls at one time, place your mouse over the top-left corner of the form, press and hold down the left mouse button while dragging it until all controls are contained within the outline displayed. When you let go of the mouse button, all the controls are marked. You can also use the Shift or Ctrl key in combination with the left mouse click to individually mark controls. |
|
|
|
|
|
|
|
|
After highlighting all the controls you want in the selection, look at the Properties window to see a list of properties that these controls have in common. For example, you can set the Height property and Left property for all these controls to one value. You can also highlight these controls and press the Del key to delete them from the form. |
|
|
|
|
|
|
|
|
Another way to select all the controls on a form is to press the Ctrl+A key combination. |
|
|
|
|
|
|
|
|
Marking Groups of Controls on a Container |
|
|
|
|
|
|
|
|
To mark a group of controls inside a container control, click the container control to give it focus and then press and hold down the Ctrl key. Next, click and hold down the left mouse button and drag the cursor to outline all the controls within the container control. Its very important that you give the container control focus prior to selecting all the controls in it. |
|
|
|
|
|
|
|
|
Using a Property Window Trick |
|
|
|
|
|
|
|
|
You can press Ctrl+Shift+<letter> to move quickly to any property you want to change. For example, if youre positioned on the Caption property and you want to move to the Width property, press Ctrl+Shift+W to go to this property. If there are more properties with the same letter you can keep pressing Ctrl+Shift+<letter> to move to each new property. |
|
|
|
|
|
|
|
|
Many properties, such as the Align property, allow you to select from an enumerated list of values. You can choose these values from a drop-down combo box. You can also double-click the property name itself to toggle the values from one to the other. You can also press the number or letter of the value and the property value will be updated in the Property Window. |
|
|
|
|
|